# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: demo01.py
@time: 2021/02/01
"""


class A:
    # name = 10
    ...


class B:
    name = 20


class C(A):
    ...


class D(C, B):
    ...


class E(D, B):
    ...


import re

text = "abc123cba345b90xxxx"


def test01():
    ...
    cmp = re.compile(r'\d+')
    end_post = -1
    while True:
        content = cmp.search(text, pos=end_post + 1)
        if not content:
            break
        find_content = content.group()
        print(find_content)
        end_post = text.find(find_content, end_post + 1) + len(find_content)


if __name__ == '__main__':
    pass
    test01()
    # l = [1,2,3]
    # # print(l[0])
    # # print(type(type))
    # print(D.name)
